package service

import (
	"Graphite/database"
	"Graphite/model"
	"context"
	"log"
)

func ApiGroupInsert( apiGroup model.ApiGroup) {
	collection := database.DB.Collection("apis")
	insertOneResult, err := collection.InsertOne(context.Background(), apiGroup)
	if err != nil {
		log.Println(err)
	}
	log.Println("collection.InsertOne: ", insertOneResult.InsertedID)
}
